package com.example.service;

import com.alibaba.fastjson.JSONObject;
import com.example.entity.Month;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public interface MonthService {
    public JSONObject insert(Month m);
    public boolean deleteById(Long id);

    List<JSONObject> getTimeLine();

    Month selectById(Long id);

    Month findByYearAndMonth(String year, String month);

    JSONObject selectAll();

    JSONObject update(Month month);

    JSONObject deleteById(Month month);
}
